﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace mvcDemo.Controllers
{
    public class dellogController : ApiController
    {
        /// <summary>
        /// 删除过期日志
        /// </summary>
        /// <returns></returns>
        // GET: api/dellog
        public JsonMessage Get()
        {
            try
            {
                LogTool.DeleteLog();
                return new JsonMessage();
            }
            catch(Exception ex)
            {
                return new JsonMessage("删除日志错误", ex.Message, ex.StackTrace);
            }
            
        }
    }
}
